Skip to content

gh-101100: Silence Sphinx warnings when ntpath or posixpath are referenced - #112833

Merged
AlexWaygood merged 1 commit into
python:mainfrom
AlexWaygood:os-path-nitpicks
Dec 7, 2023
Merged

AlexWaygood merged 1 commit into
python:mainfrom
AlexWaygood:os-path-nitpicks

Conversation

@AlexWaygood

@AlexWaygood AlexWaygood commented Dec 7, 2023 •

Copy link
Copy Markdown
Member

ntpath and posixpath are undocumented modules, and I think they should stay undocumented. The vast majority of users won't need to worry about them; they're implementation details of os.path.

This PR silences Sphinx warnings when these modules are referenced (because Sphinx cannot resolve the references) by adding them to the nitpick_ignore list in Doc/conf.py. Doing this allows us to remove library/os.path.rst from the .nitignore list of files.


📚 Documentation preview 📚: https://cpython-previews--112833.org.readthedocs.build/

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants